// mmo_game_server/security/ddos_defense.h
#ifndef DDOS_DEFENSE_H
#define DDOS_DEFENSE_H

#include <unordered_map>
#include <chrono>

class DDoSDefense {
public:
    DDoSDefense();
    ~DDoSDefense();

    bool CheckIP(const std::string& ip);

private:
    std::unordered_map<std::string, std::chrono::time_point<std::chrono::steady_clock>> ipTimestamps;
    int maxRequestsPerSecond;
};

#endif